TestAssetBundle = class("TestAssetBundle")

function TestAssetBundle:Awake(go,refAssets)
	self.gameObject = go
	self.transform = go.transform
end

function TestAssetBundle:Start()
	-- body
	abMgr:LoadAsset("mainapp/mainapp_prefabtest.unity3d",handler(self, self.OnLoadedAB))
end

function TestAssetBundle:OnLoadedAB(asset ) 
	local prefab = asset:LoadAsset("PrefabTest.prefab")
	newObject(prefab)

	local depends = abMgr:GetDependBundles("mainapp/mainapp_prefabtest.unity3d")
	for i = 0, depends.Length-1 do
		logError(depends[i])
	end
end


return TestAssetBundle